const _ = require('lodash');
const LoopBackContext = require('loopback-context');
const services = require('../../services');

const eLancoService = services.eLanco;

module.exports = (ctx, modelInstance, callback) => {
  // 异步过程出催
  callback();
  // const context = LoopBackContext.getCurrentContext();
  // const form = context.get('form');
  // const flow = context.get('flow');
  // const returnform = context.get('returnform');
  // const formDetail = context.get('formDetail');
  // const isCancel = returnform == 'return' ? 'return' : true;
  // const approvalList = formDetail.approvalList();
  // const eventName = flow.flowRun.events.approvalAfter;
  // if (flow.flowRun.isEmailSend) eLancoService.handlEmailSendEvent(form, flow, formDetail, approvalList, isCancel);
  // if (_.isEmpty(eventName)) return callback();
  // eLancoService.handleCustomEvent(form, formDetail, eventName, callback);
};
